<%-- 
    Document   : edit
    Created on : Mar 18, 2011, 11:01:25 PM
    Author     : Alejandro
--%>


<%@page import="general.OutputProvider"%>
<%@page import="java.util.Set"%>
<%@page import="web.Context"%>
<%@page import="web.Linker"%>
<%@page import="web.HtmlOutput"%>
<%@page import="web.ParamStorage"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%!
   Linker mp = Linker.getInstance();
%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="style.css" />
        <title>Edit page</title>
        <script type="text/javascript" src="lib.js"></script>
    </head>
    <body>
        <div>
        <h1>Edit page</h1>
        <form id="edit_form" method="post" action="index.jsp">
        <%
            ParamStorage pp = new ParamStorage(request);
            OutputProvider op = new HtmlOutput(out);
            mp.setMessageMap(request);
            Context ctx = new Context(op, pp);
            Set<Integer> messages = mp.getMessageMap().keySet();
            for(Integer i: messages) {
                if (i != Linker.MSG_VIEW_TABLE) {
                    mp.getMessageMap().get(i).executeOperation(ctx);
                }
            }
        %>
        </form>
        </div>
    </body>
</html>
